﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/sitemesh-page.tld" prefix="page"%>
<%@ taglib uri="/WEB-INF/sitemesh-decorator.tld" prefix="decorator"%>

<%@ include file="/WEB-INF/includes/decorators/header.jsp"%>
<script language=JavaScript>
	//一级菜单的最大数量
	var parentMenuCount = 9;
	//二级菜单的最大数量
	var itemMenuCount = 20;
	function changeMenu(pid,url){
		var obj = null;
		for(var i=1;i<=parentMenuCount;i++){
			obj = document.getElementById("menu"+i);
			if(null != obj){
				obj.className = "level1";
			}
			for(var j=1;j<=itemMenuCount;j++){
				obj = document.getElementById("menu"+i+j);
				if(null != obj){
					if (obj.style.display == "block") {
						obj.style.display = "none";
						obj.className = "level2";
					}
				}
			}
		}
		for(var i=1;i<=itemMenuCount;i++){
			obj = document.getElementById("menu"+pid+i);
			if(null != obj){
				obj.style.display = "block";
			}
		}
		if("" != url){
			document.location.href = url;
		}else{
			obj = document.getElementById("menu"+pid);
			if(null != obj){
				obj.className = "level1 menuselect";
			}
		}
	}
</script>
<div class="main">
	<div class="margin10A"></div>
	<div class="content">
		<div class="menu">
			<div id="menulist" class="list">
				<div class="menutop">
				</div>
				<div id="menu1" class="level1">
					<a href="<%=request.getContextPath()%>/infopub/pubmain?menuid=1">首页</a>
				</div>
				<div class="menuline">
				</div>
				<div id="menu2" class="level1">
					<a href="<%=request.getContextPath()%>/sourcing/projlist?menuid=2">我的投标\谈判\询价</a>
				</div>
				<div class="menuline">
				</div>
				<div  id="menu21" class="level2">
					<a href="<%=request.getContextPath()%>/sourcing/biddingprojlist?menuid=21">进行中的项目</a>
				</div>
				<div  id="menu22" class="level2">
					<a href="<%=request.getContextPath()%>/sourcing/badeprojlist?menuid=22">历史项目</a>
				</div>
				<div  id="menuline1" class="menuline">
				</div>
				<div id="menu3" class="level1">
					<a href="javascript:changeMenu(3,'');">我的订单\合同</a>
				</div>
				<div class="menuline">
				</div>
				<div  id="menu31" class="level2">
					<a href="<%=request.getContextPath()%>/order/confirmlist?menuid=31">订单确认</a>
				</div>
				<div  id="menu32" class="level2">
					<a href="<%=request.getContextPath()%>/order/exestatuslist?menuid=32">订单执行状态维护</a>
				</div>
				<div  id="menu33" class="level2">
					<a href="<%=request.getContextPath()%>/order/exeinfolist?menuid=33">订单执行情况跟踪</a>
				</div>
				<div  id="menu38" class="level2">
					<a href="<%=request.getContextPath()%>/contract/contractconfirm?menuid=38">合同确认</a>
				</div>
				<div  id="menu34" class="level2">
					<a href="<%=request.getContextPath()%>/contract/contractlist?menuid=34">我的合同</a>
				</div>
				<div  id="menu35" class="level2">
					<a href="<%=request.getContextPath()%>/contractprice/ctreptlist?menuid=35">合同协议报价维护</a>
				</div>
				<div  id="menu36" class="level2">
					<a href="<%=request.getContextPath()%>/other/goQryPageFromList?menuid=36">我的发货通知</a>
				</div>
				<div  id="menu37" class="level2">
					<a href="<%=request.getContextPath()%>/other/sendPlanList?menuid=37">发货计划维护</a>
				</div>
				
				
				<div  id="menuline3" class="menuline">
				</div>
				<div id="menu5" class="level1">
					<a href="javascript:changeMenu(5,'');">业务查询</a>
				</div>
				<div class="menuline">
				</div>
				<!--div  id="menu51" class="level2">
					<a href="<%=request.getContextPath()%>/other/supInfoList?menuid=51">供货情况汇总</a>
				</div-->
				<div  id="menu52" class="level2">
					<a href="<%=request.getContextPath()%>/other/arrGoodsList?menuid=52">到货查询</a>
				</div>
				<div  id="menu53" class="level2">
					<a href="<%=request.getContextPath()%>/other/storageList?menuid=53">入库查询</a>
				</div>
				<div  id="menu54" class="level2">
					<a href="<%=request.getContextPath()%>/other/invoiceList?menuid=54">开票情况查询</a>
				</div>
				<div  id="menu55" class="level2">
					<a href="<%=request.getContextPath()%>/other/paymentList?menuid=55">付款查询</a>
				</div>
				<div  id="menu56" class="level2">
					<a href="<%=request.getContextPath()%>/other/useCountList?menuid=56">消耗汇总查询</a>
				</div>
				<div  id="menu57" class="level2">
					<a href="<%=request.getContextPath()%>/other/ctExecutiveMXList?menuid=57">合同执行明细查询</a>
				</div>
				
				<div  id="menu58" class="level2">
					<a href="<%=request.getContextPath()%>/other/ctExecutiveHZList?menuid=58">合同执行汇总查询</a>
				</div>
				
				<div  id="menuline2" class="menuline">
				</div>
				<div id="menu4" class="level1">
					<a href="javascript:changeMenu(4,'');">自助服务</a>
				</div>
				<div class="menuline">
				</div>
				<div  id="menu41" class="level2">
					<a href="<%=request.getContextPath()%>/selfinfo/password?menuid=41">修改密码</a>
				</div>
				<div  id="menu42" class="level2">
					<a href="<%=request.getContextPath()%>/selfinfo/userinfo?menuid=42">个人信息维护</a>
				</div>
				<div  id="menu43" class="level2">
					<a href="<%=request.getContextPath()%>/selfinfo/editinfo?menuid=43">企业信息管理</a>
				</div>
				<div  id="menu44" class="level2">
					<a href="<%=request.getContextPath()%>/selfinfo/productlist?menuid=44">产品分类管理</a>
				</div>
				<div  id="menu45" class="level2">
					<a href="<%=request.getContextPath()%>/selfinfo/qualitylist?menuid=45">资质分类管理</a>
				</div>
				<div  id="menu46" class="level2">
					<a href="<%=request.getContextPath()%>/selfinfo/contractlist?menuid=46">联系人维护</a>
				</div>
				<div  id="menu47" class="level2">
					<a href="<%=request.getContextPath()%>/prodprice/prodpricelist?menuid=47">产品价格维护</a>
				</div>
				<div  id="menu48" class="level2">
					<a href="<%=request.getContextPath()%>/infopub/viewfile?menuid=48">下载中心</a>
				</div>
				<div class="menubottom">
				</div> 
			</div>
		</div>
		<!-- 信息内容 -->
		<decorator:body />
	</div>
	<div class="margin10">
	</div>
</div>
<script language=JavaScript>
	//点击的菜单ID
	var menuItem = null;
	<%if(null != request.getParameter("menuid")){%>
		menuItem = "<%=request.getParameter("menuid")%>";
	<%}else{%>
		menuItem = "<%=request.getSession().getAttribute("menuid")%>";
	<%}%>
	if(null != menuItem && "" != menuItem && "null" != menuItem){
		//点击的父菜单ID
		var menuId = menuItem;
		if(menuItem.length != 1){
			menuId = menuItem.substr(0,1);
		}
		//展开点击菜单所在的菜单列表
		var obj = null;
		for(var i=1;i<=itemMenuCount;i++){
			obj = document.getElementById("menu"+menuId+i);
			if(null != obj){
				obj.style.display = "block";
			}
		}
		//设置点击菜单的class
		obj = document.getElementById("menu"+menuItem);
		if(menuItem.length == 1){
			obj.className = "level1 menuselect";
		}else{
			obj.className = "level2 menuselect";
		}
	}
</script>
<%@ include file="/WEB-INF/includes/decorators/footer.jsp"%>
<% 
	String strMenuId = request.getParameter("menuid");
	if(null == strMenuId || "".equals(strMenuId)){
		strMenuId = (String)request.getSession().getAttribute("menuid");
	}
	request.getSession().setAttribute("menuid",strMenuId);
%>